# $Id: PKGBUILD 71932 2012-06-03 20:47:38Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gleidson Echeli <gleidson dot echeli at gmail dot com>

pkgname=umlet
pkgver=11.5.1
pkgrel=1
pkgdesc="Free UML Tool for Fast UML Diagrams (stand-alone version)"
arch=('any')
url="http://www.umlet.com"
license=('GPL')
depends=('java-runtime')
makedepends=('unzip' 'patch')
source=("http://www.umlet.com/umlet_${pkgver//./_}/umlet_${pkgver}.zip"
	'umlet.desktop'
	'UMLet.sh.diff')
md5sums=('e8311fc1b99d98a7c7c570d39084ca1d'
         '4efcfeea2f54b849bc86e3f1905449be'
         'ef9620bd90f0e3bba7133629cf5885c8')

build() {
  cd ${srcdir}/Umlet

  patch -Np1 -i ../UMLet.sh.diff
  rm -f Umlet.sh.orig
  rm -rf src
  rm -ff Umlet.exe

  install -D -m755 umlet.sh ${pkgdir}/usr/bin/umlet
  install -d -m755 ${pkgdir}/usr/share
  mv ${srcdir}/Umlet ${pkgdir}/usr/share/umlet
  install -D -m644 ${srcdir}/umlet.desktop $pkgdir/usr/share/applications/umlet.desktop
}
